<?php
require_once "../funciones.php";
$link_caweb = con_intranetpccom();

$familia = $_POST["q"];
$subclase = $_POST['subcla'];
$clase = $_POST['cla'];
$result67 = "select * from  grupos where codigoclase = '$clase' and codigosubclases = '$subclase' and famCod = '$familia' and estado = 1 order by grupDesc";
$result67 = mysql_query($result67, $link_caweb) or die('Error modelos, ' . mysql_error().$sql);
$row67 = mysql_fetch_array($result67);
if(is_array($row67)){
    echo "<label for='lectura'>Grupo:</label>";
    echo "<select name='lectura' id='lectura' class='mayusculas' onchange='funcion_pasasesion(\"modelo\",this.value)'>";
    echo "<option value='' >Seleccionar..</option>";
    do{
    ?>
        <option value="<? echo $row67["grupCod"]; ?>"><? echo $row67["grupDesc"]; ?> </option>
<?
    }while ($row67 = mysql_fetch_array($result67)) ;
    echo "</select>";
}
?>